<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.microsoft.com/dynamics/2008/01/documents/LedgerGeneralJournal" xmlns:st="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/dynamics/2008/01/documents/LedgerGeneralJournal" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://app002:8101/DynamicsAx/Services/LedgerServices?xsd=xsd10" namespace="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes" />
  <xs:element name="LedgerGeneralJournal" type="tns:AxdLedgerGeneralJournal" />
  <xs:complexType name="AxdLedgerGeneralJournal">
    <xs:sequence>
      <xs:element minOccurs="0" name="ClearNilFieldsOnUpdate" nillable="true" type="st:AxdEnum_boolean" />
      <xs:element minOccurs="0" name="DocPurpose" nillable="true" type="st:AxdEnum_XMLDocPurpose" />
      <xs:element minOccurs="0" name="SenderId" nillable="true" type="st:AxdExtType_DataAreaId" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="LedgerJournalTable" type="tns:AxdEntity_LedgerJournalTable" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AxdEntity_LedgerJournalTable">
    <xs:sequence>
      <xs:element minOccurs="0" name="_DocumentHash" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DetailSummaryPosting" nillable="true" type="st:AxdEnum_DetailSummary" />
      <xs:element minOccurs="1" name="JournalName" type="st:AxdExtType_LedgerJournalNameId" />
      <xs:element minOccurs="0" name="JournalNum" nillable="true" type="st:AxdExtType_LedgerJournalId" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="st:AxdExtType_Name" />
      <xs:element minOccurs="0" name="OffsetLedgerDimension" nillable="true" type="st:AxdType_MultiTypeDefaultAccount" />
      <xs:element minOccurs="0" name="PostedDateTime" nillable="true" type="st:AxdExtType_JournalPostedDateTime" />
      <xs:element minOccurs="0" name="WorkflowApprovalStatus" nillable="true" type="st:AxdEnum_LedgerJournalWFApprovalStatus" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="LedgerJournalTrans" type="tns:AxdEntity_LedgerJournalTrans" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="st:AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:complexType name="AxdEntity_LedgerJournalTrans">
    <xs:sequence>
      <xs:element minOccurs="0" name="AccountType" nillable="true" type="st:AxdEnum_LedgerJournalACType" />
      <xs:element minOccurs="0" name="AmountCurCredit" nillable="true" type="st:AxdExtType_AmountCurCredit" />
      <xs:element minOccurs="0" name="AmountCurDebit" nillable="true" type="st:AxdExtType_AmountCurDebit" />
      <xs:element minOccurs="0" name="Company" nillable="true" type="st:AxdExtType_SelectableDataArea" />
      <xs:element minOccurs="0" name="CurrencyCode" nillable="true" type="st:AxdExtType_CurrencyCode" />
      <xs:element minOccurs="0" name="DefaultDimension" nillable="true" type="st:AxdType_DimensionAttributeValueSet" />
      <xs:element minOccurs="0" name="JournalNum" nillable="true" type="st:AxdExtType_LedgerJournalId" />
      <xs:element minOccurs="0" name="LedgerDimension" nillable="true" type="st:AxdType_MultiTypeAccount" />
      <xs:element minOccurs="0" name="LineNum" nillable="true" type="st:AxdExtType_LineNum" />
      <xs:element minOccurs="0" name="OffsetAccountType" nillable="true" type="st:AxdEnum_LedgerJournalACType" />
      <xs:element minOccurs="0" name="OffsetCompany" nillable="true" type="st:AxdExtType_SelectableDataArea" />
      <xs:element minOccurs="0" name="OffsetDefaultDimension" nillable="true" type="st:AxdType_DimensionAttributeValueSet" />
      <xs:element minOccurs="0" name="OffsetLedgerDimension" nillable="true" type="st:AxdType_MultiTypeAccount" />
      <xs:element minOccurs="0" name="OffsetTxt" nillable="true" type="st:AxdExtType_LedgerJournalTransTxt" />
      <xs:element minOccurs="0" name="TransDate" nillable="true" type="st:AxdExtType_TransDate" />
      <xs:element minOccurs="0" name="Txt" nillable="true" type="st:AxdExtType_LedgerJournalTransTxt" />
      <xs:element minOccurs="0" name="Voucher" nillable="true" type="st:AxdExtType_Voucher" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="st:AxdEnum_AxdEntityAction" />
  </xs:complexType>
</xs:schema>